<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header">{language text="rsvp"}</td>
                </tr>
            </table>
{messages block='rsvp'}
{if $bChange || !$iCnt}
<form method="post" action="{url link='public.event.view' id=$iEventId}">
<div style="padding:8px;">
    <label><input type="radio" name="rsvp" style="vertical-align:middle;" value="1"{if $aItem.invite == 1} checked="checked"{/if} /> {language text="yes"}</label> <br />
    <label><input type="radio" name="rsvp" style="vertical-align:middle;" value="3"{if $aItem.invite == 3} checked="checked"{/if} /> {language text="no"}</label> <br />
    <label><input type="radio" name="rsvp" style="vertical-align:middle;" value="2"{if $aItem.invite == 2} checked="checked"{/if} /> {language text="maybe"}</label>
    <br /><br />
    {language text="comment"}:
    <textarea cols="16" rows="10" name="comment">{$aItem.text|escape}</textarea>
    <br />
    <br />
    <input type="submit" value="{language text="send_rsvp"}" name="act[rsvp]" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" onclick="document.getElementById('formhide1').style.display='none';document.getElementById('formhide2').style.display='';" />
</div>
</form>
{else}
<div style="padding:8px;">
            {language text="your_rsvp"}:
             <div style="padding:5px;font-size:10pt;font-weight:bold;">
{if $aItem.invite == 1}
{i18n key='Mod_Event.rsvp_yes'}
{elseif $aItem.invite == 2}
{i18n key='Mod_Event.rsvp_maybe'}
{elseif $aItem.invite == 3}
{i18n key='Mod_Event.rsvp_no'}
{/if}
             </div>
{if $aItem.text}
             <div style="padding:5px;font-size:10pt;">
             {$aItem.text}
             </div>
{/if}
            <br />
            <a class="link_action" href="{url link='public.event.view' id=$iEventId change=1}">[ {language text="change_rsvp"} ]</a>
</div>
{/if}
        </td>
    </tr>
</table>